package cn.edu.xmu.oomall.share.microservice.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.util.List;

/**
 * @author HertzLiu
 * @create_time 2021/12/18 13:17
 * @package_name cn.edu.xmu.oomall.liquidation.microservice.vo
 * @project_name oomall
 * @product_name IntelliJ IDEA
 * @description
 */

@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class ShareActivityVo {
    private Long id;
    private SimpleShopVo shop;
    private String name;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime beginTime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "uuuu-MM-dd'T'HH:mm:ss.SSSZZZZZ")
    private ZonedDateTime endTime;
    private List<RebateLevel> strategy;
}
